package org.example.login2;

public class Student {
        private String id;
        private String name;
        private String major;
        private int regularScore;
        private int finalScore;

        public Student(String id, String name, String major, int regularScore, int finalScore) {
            this.id = id;
            this.name = name;
            this.major = major;
            this.regularScore = regularScore;
            this.finalScore = finalScore;
        }

        public String getId() {
            return id;
        }

        public String getName() {
            return name;
        }

        public String getMajor() {
            return major;
        }

        public int getRegularScore() {
            return regularScore;
        }

        public void setRegularScore(int regularScore) {
            this.regularScore = regularScore;
        }

        public int getFinalScore() {
            return finalScore;
        }

        public void setFinalScore(int finalScore) {
            this.finalScore = finalScore;
        }

        public int getTotalScore() {
            return (int) (regularScore * 0.5 + finalScore * 0.5);
        }
    }


